﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YasharEl.Infrastructure.Core.Applications;
using YasharEl.Infrastructure.EntityModel;

namespace YasharEl.Infrastructure.Core.EntityModel.Applications.Metadata
{
    public class ApplicationEntityMetadata : Entity, IApplication
    {
        #region IApplication Members

        [Key]
        public long ApplicationId
        {
            get;
            protected set;
        }

        [Required]
        public string ApplicationName
        {
            get;
            protected set;
        }

        [Required]
        public string Description
        {
            get;
            protected set;
        }

        #endregion

        #region Entity Overrides

        public override long Id
        {
            get
            {
                return ApplicationId;
            }
            protected set
            {
                ApplicationId = value;
            }
        }

        #endregion
    }
}
